import { reactive } from 'vue'
import { getSaleReturnPageList } from '@/api/warehouse/sale-return-order'
import { getStoreOptionsList } from '@/api/base/shop'

export function useDetail() {
  const status = reactive({
    saving: false,
    loading: false
  })

  //获取列表信息
  const getDataList = async (data: any) => {
    return getSaleReturnPageList(data)
  }

  //获取门店列表
  const getShopList = async () => {
    return getStoreOptionsList()
  }

  return { status, getDataList, getShopList }
}
